<form action="/admin/pro/supplier-custom-save" id="product-supplier-add-form" data-toggle="ajaxform" data-options="{closeCurrent:true}">
    <div class="bjui-row">
        <input type="hidden" name="product_id" value="{{$productId}}">
        <div class="bjui-row col-2">
            <label class="row-label">材料名称</label>
            <div class="row-input">
                <input type="text" name="product_name" id="product_name" value="{{$productName}}" disabled>
            </div>
        </div>
        <div class="bjui-row col-2">
            <label class="row-label">供应商名称</label>
            <div class="row-input">
                <input type="hidden" name="supplier_id" >
                <input type="text" name="supplier_name" id="supplier_name" data-toggle="findgrid" data-options="{
                    include: 'supplier_id:id,supplier_name',
                    dialogOptions: {title:'查找供应商'},
                    gridOptions: {
                        local: 'local',
                        dataUrl: '/admin/supplier/list',
                        columns: [
                            {name:'supplier_name', label:'供应商名称', width:100},
                        ]
                    }
                }" disabled>
            </div>
        </div>
        <div class="bjui-row col-2">
            <label class="row-label">库存数量</label>
            <div class="row-input">
                <input type="text" name="number" id="number" value="">
            </div>
        </div>
        <div class="bjui-row col-2">
            <div class="row-input">
                <label class="row-label"></label>
                <button type="submit" class="btn-default" data-icon="save">保存</button>
                <button type="button" class="btn-close" data-icon="close">取消</button>
            </div>
        </div>
    </div>
</form>
